package com.iflytek.cosmo.ocr.model.entity;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import java.util.Date;

@Table(name="t_ocr_directory")
public class OcrDirectoryEntity {

	/**
	 * 主键Id
	 */
	@Column(name="id")
	@Id
	private String id;
	
	/**
	 * 目录名称
	 */
	@Column(name="dir_name")
	private String dirName;

	/**
	 * 用户名
	 */
	@Column(name="user_id")
	private String userId;

	/**
	 * 文件夹类型
	 */
	@Column(name="dir_type")
	private Short dirType;

	/**
	 * 创建时间
	 */
	@Column(name="create_time")
	private Date createTime;
	
	/**
	 * 更新时间
	 */
	@Column(name="update_time")
	private Date updateTime;
    /**
      * 是否可编辑
     */
	@Transient     
	private boolean canEdit=false;
	
	/**
	 * 是否删除
	 */
	@Column(name = "isdelete")
	private Integer isDelete;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDirName() {
		return dirName;
	}

	public void setDirName(String dirName) {
		this.dirName = dirName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

    public Date getUpdateTime() {
        return updateTime;
    }

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

    public Short getDirType() {
        return dirType;
    }

    public void setDirType(Short dirType) {
        this.dirType = dirType;
    }

	public boolean isCanEdit() {
		return canEdit;
	}

	public void setCanEdit(boolean canEdit) {
		this.canEdit = canEdit;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}
}
